/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ni;

import java.io.*;
import java.net.Socket;

/**
 *
 * @author Marianne Bellanger
 */
public class Downloader {

    private Socket sock;

    public Downloader (Socket sock) throws IOException{
        this.sock = sock;
    }

    public byte[] receive () throws IOException{
        byte[] message = null;
        sock.getInputStream().read(message);
        return message;


    }

}

